﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/ad/adminmaster.Master" CodeBehind="EditMember.aspx.vb" Inherits="SanDauGia.DAL.WebForm2" %>
<%@ Register src="adduser.ascx" tagname="adduser" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <center>
        <table style="width: 100%">
            <tr>
                <center><td>
                    THÊM NGƯỜI DÙNG</td></center>
            </tr>
        </table>
    </center>
    <asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" 
        AutoGenerateRows="False" CellPadding="4" DataKeyNames="MaNguoiDung" 
        DataSourceID="ObjectDataSource1" EnableModelValidation="True" 
        ForeColor="#333333" GridLines="None" Height="150px" HorizontalAlign="Center" 
        Width="580px">
        <AlternatingRowStyle BackColor="White" />
        <CommandRowStyle BackColor="#C5BBAF" Font-Bold="True" />
        <EditRowStyle BackColor="#7C6F57" />
        <FieldHeaderStyle BackColor="#D0D0D0" Font-Bold="True" />
        <Fields>
            <asp:BoundField DataField="MaNguoiDung" HeaderText="MaNguoiDung" 
                ReadOnly="True" SortExpression="MaNguoiDung" />
            <asp:BoundField DataField="TenDangNhap" HeaderText="TenDangNhap" 
                SortExpression="TenDangNhap" />
            <asp:BoundField DataField="MatKhau" HeaderText="MatKhau" 
                SortExpression="MatKhau" />
            <asp:BoundField DataField="HoTen" HeaderText="HoTen" SortExpression="HoTen" />
            <asp:BoundField DataField="NgaySinh" HeaderText="NgaySinh" 
                SortExpression="NgaySinh" />
            <asp:BoundField DataField="CMND" HeaderText="CMND" SortExpression="CMND" />
            <asp:BoundField DataField="DiaChi" HeaderText="DiaChi" 
                SortExpression="DiaChi" />
            <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
            <asp:BoundField DataField="TenChuThe" HeaderText="TenChuThe" 
                SortExpression="TenChuThe" />
            <asp:BoundField DataField="MaThe" HeaderText="MaThe" SortExpression="MaThe" />
            <asp:BoundField DataField="ThangNamHetHan" HeaderText="ThangNamHetHan" 
                SortExpression="ThangNamHetHan" />
            <asp:BoundField DataField="ChuoiKichHoat" HeaderText="ChuoiKichHoat" 
                SortExpression="ChuoiKichHoat" />
            <asp:BoundField DataField="TrangThaiTaiKhoan" HeaderText="TrangThaiTaiKhoan" 
                SortExpression="TrangThaiTaiKhoan" />
            <asp:BoundField DataField="KichHoat" HeaderText="KichHoat" 
                SortExpression="KichHoat" />
            <asp:BoundField DataField="LoaiThe" HeaderText="LoaiThe" 
                SortExpression="LoaiThe" />
            <asp:CommandField ShowInsertButton="True" />
        </Fields>
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#E3EAEB" />
    </asp:DetailsView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        DeleteMethod="Delete" InsertMethod="Insert" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
        TypeName="SanDauGia.DAL.SanDauGiaTableAdapters.NGUOIDUNGTableAdapter" 
        UpdateMethod="Update">
        <DeleteParameters>
            <asp:Parameter Name="Original_MaNguoiDung" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="MaNguoiDung" Type="Int32" />
            <asp:Parameter Name="TenDangNhap" Type="String" />
            <asp:Parameter Name="MatKhau" Type="String" />
            <asp:Parameter Name="HoTen" Type="String" />
            <asp:Parameter Name="NgaySinh" Type="DateTime" />
            <asp:Parameter Name="CMND" Type="Int32" />
            <asp:Parameter Name="DiaChi" Type="String" />
            <asp:Parameter Name="Email" Type="String" />
            <asp:Parameter Name="TenChuThe" Type="String" />
            <asp:Parameter Name="MaThe" Type="String" />
            <asp:Parameter Name="ThangNamHetHan" Type="DateTime" />
            <asp:Parameter Name="ChuoiKichHoat" Type="String" />
            <asp:Parameter Name="TrangThaiTaiKhoan" Type="Int32" />
            <asp:Parameter Name="KichHoat" Type="Int32" />
            <asp:Parameter Name="LoaiThe" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="TenDangNhap" Type="String" />
            <asp:Parameter Name="MatKhau" Type="String" />
            <asp:Parameter Name="HoTen" Type="String" />
            <asp:Parameter Name="NgaySinh" Type="DateTime" />
            <asp:Parameter Name="CMND" Type="Int32" />
            <asp:Parameter Name="DiaChi" Type="String" />
            <asp:Parameter Name="Email" Type="String" />
            <asp:Parameter Name="TenChuThe" Type="String" />
            <asp:Parameter Name="MaThe" Type="String" />
            <asp:Parameter Name="ThangNamHetHan" Type="DateTime" />
            <asp:Parameter Name="ChuoiKichHoat" Type="String" />
            <asp:Parameter Name="TrangThaiTaiKhoan" Type="Int32" />
            <asp:Parameter Name="KichHoat" Type="Int32" />
            <asp:Parameter Name="LoaiThe" Type="String" />
            <asp:Parameter Name="Original_MaNguoiDung" Type="Int32" />
        </UpdateParameters>
    </asp:ObjectDataSource>
</asp:Content>
